package com.wly.datapool
{
	public class DataPool
	{
		static private var _instance:DataPool;
		
		private var _mainPlayer:MainPlayer;
		private var _setting:Setting;
		
		public function DataPool()
		{
			init();
		}
		
		static public function getInstance():DataPool
		{
			if(!_instance)
			{
				_instance = new DataPool();
			}
			
			return _instance;
		}
		
		private function init():void
		{
			_mainPlayer = new MainPlayer();
			_setting = new Setting();
		}
		
		public function get mainPlayer():MainPlayer
		{
			return _mainPlayer;
		}
		
		public function get setting():Setting
		{
			return _setting;
		}
	}
}